﻿
Imports iConverter.Contracts
Imports iConverter.Extensions



''' <summary>
''' 简繁体转换插件提供器
''' </summary>
''' <remarks></remarks>
<PluginProvider("1FD21133-9CEF-4D8D-AA40-285E3281A1AD",
    "简繁体转换插件",
    "提供繁简字体之间的转换功能",
    "1.0", "G yc", "Han_32x32.png",
    GetType(Provider))>
Public Class Provider
    Inherits PluginProvider(Of My.MySettings)




    Private _configurator As Configurator
    Public Overrides ReadOnly Property CanConfigure As Boolean
        Get
            Return True
        End Get
    End Property

    Protected Overrides ReadOnly Property Configurator As iConverter.Contracts.IPluginConfigurator
        Get
            If _configurator Is Nothing Then
                _configurator = New Configurator()
            End If

            Return _configurator
        End Get
    End Property

    Protected Overrides Function GeneratePlugins() As System.Collections.Generic.List(Of iConverter.Extensions.Plugin(Of My.MySettings))

        Dim list As New List(Of iConverter.Extensions.Plugin(Of My.MySettings))

        list.Add(New ChinesePostProcessing(Me))

        Return list
    End Function

    Public Overrides ReadOnly Property Settings As My.MySettings
        Get
            Return My.Settings
        End Get
    End Property


End Class
